<div id="schedule">
    <% if AllGames %>
    <h2>Spielplan</h2>
    <h3>Runde 1</h3>
    <table class="leagueTable">
    <thead>
        <tr>
            <th class="date">Anpfiff</th>
            <th class="name" >Heim</th>
            <th class="number"></th>
            <th class="name">Gast</th>
            <th class="name">Schiedsrichter</th>
            <th class="result center">Resultat</th>
        </tr>
    </thead>
    <tbody>
    <% control AllGames %>
        <% if NewRound %>
            </tbody>
            </table>
		    <h3>Runde $Round</h3>
		    <table class="leagueTable">
		    <thead>
		        <tr>
		            <th class="date">Anpfiff</th>
		            <th class="name" >Heim</th>
		            <th class="number"></th>
		            <th class="name">Gast</th>
		            <th class="name">Schiedsrichter</th>
		            <th class="result center">Resultat</th>
		        </tr>
		    </thead>
		    <tbody>
        <% end_if %>
      <tr>
        <td class="date">$GameDate.Format(d.m.Y) <br />$GameTime.Nice24</td>
        <td class="name">$HomeTeam.Title</td>
        <td class="number">-</td>
        <td class="name">$GuestTeam.Title</td>
        <td class="name">$RefereeTeam.Title</td>
        <td class="result center">$Result</td>
      </tr>
   
    <% end_control %>
    </tbody>
    </table>
    <% end_if %>
</div> 